-- GENERATED SPELL FOR [Vile Fin Shorecreeper] --


function spell0_1957(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1957', 548, 1)
end

function spell1_1957(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(1776,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1957', 4000, 1)
end

function Sorts_1957(pUnit, Event)
local choix_sorts_1957 = math.random(0, 1)
if choix_sorts_1957 == 0 then
pUnit:RegisterEvent('spell0_1957', 1, 1)
end
if choix_sorts_1957 == 1 then
pUnit:RegisterEvent('spell1_1957', 1, 1)
end
end

function mob1957_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1957', math.random(1500, 3000), 1)
end

function mob1957_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1957_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1957_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1957, 1, 'mob1957_Action')
RegisterUnitEvent(1957, 2, 'mob1957_Leave')
RegisterUnitEvent(1957, 3, 'mob1957_Kill')
RegisterUnitEvent(1957, 4, 'mob1957_Die')
